<template>
  <div class="login">
    <div id="banner" class="swiper-container">
      <div class="swiper-wrapper">
        <div class="swiper-slide center" >
<!--          链接         -->
          <router-link to="Hello"></router-link>
        </div>
        <div class="swiper-slide center">
       222222222222
        </div>
        <div class="swiper-slide center">
         333333333
        </div>
      </div>
      <!-- 如果需要分页器 -->
      <div id="bannerP" class="swiper-pagination"></div>
    </div>
  </div>

</template>

<script>
  import Swiper from 'swiper'
  import 'swiper/dist/css/swiper.min.css'

  export default {
    data:{

    },
    mounted(){
      new Swiper('#banner',{
        loop:true,
        pagination: {
          el: '#bannerP',
        },
      })
    },
    beforeCreate(){

    },
    methods:{
      getUrl(){
        
      }
    }

  }
</script>

<style scoped>
  .login{width: 27rem; height: 12.5rem; background: #333;}
</style>
